import django_filters
from .models import AssetInfo


class AssetInfoFilter(django_filters.rest_framework.FilterSet):
    """
    菜单管理 简单序过滤器
    """

    asset_name = django_filters.CharFilter(lookup_expr="icontains")
    asset_code = django_filters.CharFilter(lookup_expr="icontains")

    class Meta:
        model = AssetInfo
        exclude = ("description", "creator", "modifier")
